/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package trumpet;

import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;
import trumpet.connection.Server;
import trumpet.gui.Window;
import trumpet.video.Manager;

/**
 *
 * @author michal
 */
public class App {

    public static Window mainWindow;
    
    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                try {
                    UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
                }
                catch (UnsupportedLookAndFeelException e) {
                   // handle exception
                }
                catch (ClassNotFoundException e) {
                   // handle exception
                }
                catch (InstantiationException e) {
                   // handle exception
                }
                catch (IllegalAccessException e) {
                   // handle exception
                }
                mainWindow = new Window();
                mainWindow.setVisible(true);
                Server.getInstance().handle();
                Manager.getInstance().handle();
            }
        });
    }

}
